<?php /* Smarty version 2.6.20, created on 2011-08-18 16:08:19
         compiled from back_structure/header.tpl */ ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="pl" lang="pl" xmlns:fb="http://www.facebook.com/2008/fbml" xmlns:v="urn:schemas-microsoft-com:vml">
	<head>
		<?php echo '
			<style type="text/css">
				v\\:* {
					behavior:url(#default#VML);
				}
			</style>
		'; ?>

		<meta http-equiv="Content-type" content="text/html; charset=utf-8" />
		<meta name="google-site-verification" content="AI3CQPKyX7kf1UUnJO-kIwEE67HPd6j4FObLEOKBD50" />
		<meta http-equiv="Content-language" content="pl" />
		<meta name="Description" content="<?php if ($this->_tpl_vars['description']): ?><?php echo $this->_tpl_vars['description']; ?>
<?php else: ?><?php endif; ?>" />
		<meta name="Keywords" content="" />
		<meta name="robots" content="all" />
		<meta name="Author" content="Zielinski Krzysztof" />
		<title><?php echo $this->_tpl_vars['title']; ?>
</title>
		<script src="http://maps.google.com/maps?file=api&amp;v=2&amp;sensor=true&amp;key=ABQIAAAAHy-4chTxWi7fRAXj5xfkGRTVeRltro6I6Asm8fjVGF4U7FNUOBQyKduIHYGVXdJcpJrs6BUDWFe7Wg" type="text/javascript"></script>
<!--  <link href="../public/icons/favicon.png" type="image/png" rel="icon"/>-->
		<link rel="stylesheet" type="text/css" href="<?php echo $this->_tpl_vars['url']; ?>
public/css/stylesheet.css"  media="screen" />
        <link rel="stylesheet" href="http://ajax.googleapis.com/ajax/libs/jqueryui/1.8.14/themes/base/jquery-ui.css" type="text/css" media="all" />
		<script type="text/javascript" src="<?php echo $this->_tpl_vars['url']; ?>
public/js/jquery-1.6.2.min.js"></script>
		<script type="text/javascript" src="<?php echo $this->_tpl_vars['url']; ?>
public/js/jquery-ui-1.8.14.custom.min.js"></script>
        <script src="http://ajax.googleapis.com/ajax/libs/jqueryui/1.8.14/jquery-ui.min.js" type="text/javascript"></script>
        <script type="text/javascript" src="<?php echo '<?='; ?>
SITE_ADDRESS<?php echo '?>'; ?>
/js/jquery.form.js"></script>
        <script src="http://jquery-ui.googlecode.com/svn/tags/latest/external/jquery.bgiframe-2.1.2.js" type="text/javascript"></script>
        <script src="http://ajax.googleapis.com/ajax/libs/jqueryui/1.8.14/i18n/jquery-ui-i18n.min.js" type="text/javascript"></script>
		<script type="text/javascript" src="<?php echo $this->_tpl_vars['url']; ?>
public/js/engine.js"></script>

		<!--[if lt IE 8]>
			<style>@import url("./css/ie.css");</style>
		<![endif]--> 
		<!--[if lt IE 7]>
			<style>@import url("./css/ie6.css");</style>
			<script type="text/javascript" src="./js/DD_belatedPNG.js"></script>

			<script>
				DD_belatedPNG.fix('ul, li, p, div, a, input, textarea, form, img, h1, h2, h3, dl, span');
			</script>
		<![endif]--> 
	</head>
	<body>
		<div id="fb-root"></div>
		<script src="http://connect.facebook.net/pl_PL/all.js"></script>
		<?php echo '                                                                                    
			<script>                                          
				FB.init({                                                                                              
					appId: '; ?>
<?php echo $this->_tpl_vars['FB_ID']; ?>
<?php echo ', 
					cookie:true, 
					status:true, 
					xfbml:true                                                                                              
				});                                     
			 
				function loginByFb(opt)
				{
					FB.init({ 
						appId: '; ?>
<?php echo $this->_tpl_vars['FB_ID']; ?>
<?php echo ', cookie:true, 
						status:true, xfbml:true 
					});

					FB.login(function(response) {
						if(response.session) {                       
							if(response.perms) {
								if(opt == \'newOffer\')
								{
									document.location = "'; ?>
<?php echo $this->_tpl_vars['url']; ?>
facebook-login/offer<?php echo '";
								}
								else
								{
									document.location = "'; ?>
<?php echo $this->_tpl_vars['url']; ?>
facebook-login/<?php echo '";
								}
							} else {
								alert(\'Niestety nie mozemy pobrać danych z Facebooka. Postaraj się później\');
							}
						}
					}, {perms:\'email,user_checkins,publish_stream\'});
				}
			 
				function getUrlVars()
				{
					var vars = [], hash;
					var hashes = window.location.href.slice(window.location.href.indexOf(\'?\') + 1).split(\'&\');
					for(var i = 0; i < hashes.length; i++)
					{
						hash = hashes[i].split(\'=\');
						vars.push(hash[0]);
						vars[hash[0]] = hash[1];
					}
					return vars;
				}
			 
				FB.Event.subscribe(\'auth.logout\', function(response) 
				{
				});

				$(document).ready(function() 
				{
					if(getUrlVars()[\'t\'] == 13)    
					{
						alert(\'Wystąpił błąd kliknij ponownie logowanie. Najprawdopodobniej wygasła Twoja sesja na Facebooku.\');
					}
				});
			</script>
		'; ?>

		<?php $_smarty_tpl_vars = $this->_tpl_vars;
$this->_smarty_include(array('smarty_include_tpl_file' => "back_structure/messages.tpl", 'smarty_include_vars' => array()));
$this->_tpl_vars = $_smarty_tpl_vars;
unset($_smarty_tpl_vars);
 ?>